home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / tess / tess-1.0 / Underlay-Helper.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-30  |  2.0 KB  |  63 lines

  1. /* Underlay-Helper.c generated from Underlay-Helper.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "Underlay-Helper.psw"
  9. #line 10 "Underlay-Helper.c"
  10. void print_name(char *nm)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char sizeFlag;
  15.     unsigned short topLevelCount;
  16.     unsigned long nBytes;
  17.  
  18.     DPSBinObjGeneric obj0;
  19.     DPSBinObjGeneric obj1;
  20.     DPSBinObjGeneric obj2;
  21.     DPSBinObjGeneric obj3;
  22.     DPSBinObjGeneric obj4;
  23.     DPSBinObjGeneric obj5;
  24.     DPSBinObjGeneric obj6;
  25.     DPSBinObjGeneric obj7;
  26.     DPSBinObjGeneric obj8;
  27.     DPSBinObjGeneric obj9;
  28.     DPSBinObjGeneric obj10;
  29.     DPSBinObjGeneric obj11;
  30.     } _dpsQ;
  31.   static const _dpsQ _dpsStat = {
  32.     DPS_DEF_TOKENTYPE, 0, 12, 104,
  33.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78},    /* gsave */
  34.     {DPS_LITERAL|DPS_INT, 0, 0, 40},
  35.     {DPS_LITERAL|DPS_INT, 0, 0, 40},
  36.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  37.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 204},    /* Helvetica-Bold */
  38.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67},    /* findfont */
  39.     {DPS_LITERAL|DPS_INT, 0, 0, 18},
  40.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140},    /* scalefont */
  41.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149},    /* setfont */
  42.     {DPS_LITERAL|DPS_STRING, 0, 0, 96},    /* param nm */
  43.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160},    /* show */
  44.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77},    /* grestore */
  45.     }; /* _dpsQ */
  46.   _dpsQ _dpsF;    /* local copy  */
  47.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  48.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  49.   register int _dps_offset = 96;
  50.   _dpsF = _dpsStat;    /* assign automatic variable */
  51.  
  52.   _dpsP[9].length = strlen(nm);
  53.   _dpsP[9].val.stringVal = _dps_offset;
  54.   _dps_offset += (_dpsP[9].length + 3) & ~3;
  55.  
  56.   _dpsF.nBytes = _dps_offset+8;
  57.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,104);
  58.   DPSWriteStringChars(_dpsCurCtxt, (char *)nm, _dpsP[9].length);
  59.   DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[9].length + 3) & 3);
  60. }
  61. #line 8 "Underlay-Helper.psw"
  62.  
  63.